package com.caigp.cookbook2.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.caigp.cookbook2.R;
import com.caigp.cookbook2.bean.Menu;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class MenuRightAdapter extends BaseQuickAdapter<Menu.MenuChild, BaseViewHolder> {

    public MenuRightAdapter(int layoutResId, @Nullable List<Menu.MenuChild> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Menu.MenuChild item) {
        helper.setText(R.id.text_view, item.getName());
    }
}
